home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The 640 MEG Shareware Studio 2
/
The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO
/
4dos
/
4dos_btm.zip
/
DESC.BTM
< prev
next >
Wrap
Text File
|
1992-04-15
|
10KB
|
388 lines
: ┌─────────────────────────────────────────────────────────────────────────┐
: │ 4 4 DDD OO SSS 4 4 00 │
: │ DESCBTM Version 1.0 for 4 4 D D O O S 4 4 0 o0 │
: │ 4444 D D O O SSSS 4444 0o 0 │
: │ (C) 1992 FMMO Publications 4 D D O O S 4 0 0 │
: │ Informatiques Enr. 4 DDD OO SSS 4 . 00 │
: │ │
: │ [Non-Registered Version] 04-11-92 │
: ├─────────────────────────────────────────────────────────────────────────┤
: │4DOS is a trademark of JP Software P.O. Box 1470 East Arlington, MA 02174│
: └─────────────────────────────────────────────────────────────────────────┘
if "%cwd" ne "" goto not4dos
if %_4ver lt 4.0 goto notv40
cls
echo
echo
echo
scrput 2 1 bri whi on blu working ...
setlocal
set totalenv=%_ENV
set /r d:\wkg\dld\tmp\desc.ini
echo %_? > error.lst
iff %@line[error.lst, 0] eq 2 then
del error.lst >& nul
echo Not enough environment or alias space :-(
echo.
beep 310 10
beep 210 10
echo You would have only %_ENV bytes of free environment.
text
This is not enough to run DESCBTM.
Solution : a) run DESCBTM under a 4DOS /e=4096 shell;
b) look in the main screen how much bytes of environment
DESCBTM needs;
c) Add this amount to your 4DOS.INI file;
d) Refer to 4DOS.DOC for more information on environment
memory.
endtext
endlocal
cancel
endiff
iff "%configured" ne "yes" then
del error.lst >& nul
echo.
beep 310 10
beep 210 10
set error=%@search[desc.ini] >& nul
iff "%error" ne "" then
text
DESC.INI is not properly configured to fit your system.
Solution : a) Read DESCBTM.DOC.
It is crucial for the well behavior of this BTM file that
the variables in DESCVAR.LST be configured to fit your
system. If strange stuff keeps happening, the error is most
probably in the configuration of this file's variables.
endtext
else
text
DESC.INI is not in your path or its path is not specified in DESCVAR.LST.
Solution : a) Move all DESCBTM files in a directory that is included
in your path statement.
b) Edit the DESCBTM file and change the %@search command,
so it would point to the path of DESC.INI.
c) Read 4DOS.DOC for more information on the path
statement
endtext
endiff
endlocal
cancel
endiff
del /y error.lst >& nul
%keystackpath >& nul
%cursor_off
break off
pushd
attrib -h descript.ion >& nul
echo %_cwd > %prcssdir
gosub copydesc
set sp2=
set fp2=
:home
cls
set fp=-1
set sp=0
iff "%sp2" ne "" then
set fp=%@eval[%fp2-10]
set sp=%@eval[%sp2-10]
set fp2=
set sp2=
else
set numdown=0
endiff
iff exist *.* then
dir /b > %dirlst
else
scrput 7 5 bri gre on blu There are no files in this directory :-(
gosub drawboxes
goto chgdir
endiff
gosub drawboxes
gosub stats
:loop
set fp=%@eval[%fp+1]
set sp=%@eval[%sp+1]
iff %@line[%dirlst,%fp] ne **EOF** then
scrput %@eval[%sp+5] 5 bri whi on blu %@line[%dirlst,%fp]
scrput %@eval[%sp+5] 20 bri gre on blu %@filedate[%@line[%dirlst,%fp]]
scrput %@eval[%sp+5] 30 bri mag on blu %@filesize[%@line[%dirlst,%fp],b]
scrput %@eval[%sp+5] 39 bri blu on blu %@descript[%@line[%dirlst,%fp]]
endiff
if %@eval[%sp %% 10] eq 0 gosub getfile
goto loop
:getfile
gosub drawboxes
scrput 5 6 whi on blu
scrput 16 6 whi on blu
scrput 16 7 mag on blu %numdown
set lineoflst=%@substr[%@select[%@search[%menusel],4,0,23,2],1,2]
if "%lineoflst" eq "" goto chgdir
iff %lineoflst eq D then
iff %@line[%dirlst,%@eval[%fp+1]] ne **EOF** then
beep 400 1
beep 500 1
set sp=0
set numdown=%@eval[%numdown+1]
else
goto getfile
endiff
cls
gosub drawboxes
gosub stats
return
elseiff %lineoflst eq u then
if %@lines[%dirlst] lt 11 gosub getfile
if %fp lt 11 goto getfile
beep
set sp=0
set fp=%@eval[%fp-20]
set numdown=%@eval[%numdown-1]
cls
gosub drawboxes
gosub stats
return
else
goto describethis
endiff
:chgdir
drawbox 17 4 23 79 %boxstyle cyn on blu
gosub clrstatbox
scrput 18 5 whi on blu working ...
echo . >%dirlst
if %@len[%_cwds] ne 3 echo .. >> %dirlst
dir /ad /b >&> nul >> %dirlst
REM ************* Put as many drives and directories as you wish ! ***********
REM ************* Without any trailing backslash ! We warned you ! ***********
echo a: >> %dirlst
echo b: >> %dirlst
echo c: >> %dirlst
echo d: >> %dirlst
echo c:\download >> %dirlst
echo c:\upload >> %dirlst
set isitadir=%@select[%dirlst,18,7,22,79, Please select the directory you wish to change to: ]
if "%isitadir" eq "" goto out
iff isdir %isitadir then
echo %@full[%isitadir] >> %prcssdir
*cdd %isitadir
gosub copydesc
goto home
elseiff %isitadir eq quit then
goto out
else
goto chgdir
endiff
:describethis
iff %@line[%dirlst,%@eval[%fp-(9-%lineoflst)]] ne **EOF** then
drawbox 17 4 23 79 %boxstyle whi on blu
scrput 19 5 cya on blu %@line[%dirlst,%@eval[%fp-(9-%lineoflst)]]
keystack "%@descript[%@line[%dirlst,%@eval[%fp-(9-%lineoflst)]]]"
endiff
:reask
scrput 20 19 bri cya on blu └────────────────────────────────────────┘
screen 19 20
%cursor_on
input %%newdes
%cursor_off
iff %@len[%newdes] gt 40 then
keystack "%newdes"
goto reask
iff "%newdes" ne "" then
:descentered
describe %@line[%dirlst,%@eval[%fp-(9-%lineoflst)]] ""
echo %newdes | describe %@line[%dirlst,%@eval[%fp-(9-%lineoflst)]] > nul
set Keystacklist=@80 @80 @80 @80 @80 @80 @80 @80 @80 @80 @80 @80
set Keystacklist=%@substr[%Keystacklist,0,%@eval[%lineoflst *4 + 4]]
keystack %Keystacklist
set sp2=%sp
set fp2=%fp
goto home
else
set newdes=%@select[%@search[%desclist],18,8,21,80,Please Select a Description Among These !]
if "%newdes" eq "" set newdes=Not Described Yet !
goto descentered
endiff
else
goto out
endiff
set sp2=%sp
set fp2=%fp
goto home
:drawboxes
drawbox 5 4 16 79 %boxstyle bri whi on blu
scrput 0 4 bri yel on blu ≡ DESCBTM v1.0 (C) 1992
scrput 0 34 bri cya on blu FM
scrput 0 36 bri yel on blu MO
scrput 0 38 bri yel on blu Publications Informatiques Enr. ≡
drawhline 1 4 76 1 cya on blu
return
:stats
scrput 2 5 bri cya on blu current directory is :
scrput 2 28 bri yel on blu %_CWD
scrput 3 5 bri whi on blu environment used :
scrput 3 28 bri gre on blu %@eval[%totalenv-%_env]
scrput 3 34 bri whi on blu bytes
scrput 4 5 bri whi on blu number of entries :
scrput 4 28 bri red on blu %@eval[%@lines[%dirlst]+1]
scrput 4 34 bri whi on blu entrie(s)
return
:savemods
set counter=0
:loop2
if "%counter" gt "%@lines[%prcssdir]" return
*attrib -h %@line[%prcssdir,%counter]\descript.ion >& nul
*attrib -h %@line[%prcssdir,%counter]\descript.bak >& nul
if "%@filesize[%@line[%prcssdir,%counter]\descript.ion]" ne "%@filesize[%@line[%prcssdir,%counter]\descript.bak]" gosub modified
set counter=%@eval[%counter+1]
goto loop2
return
:modified
iff "%autosave"="yes" then
del /y %@line[%prcssdir,%counter]\descript.bak >& nul
return
endiff
gosub clrstatbox
screen 19 6
echo Descript.ion in %@line[%prcssdir,%counter] was modified !
screen 20 6
inkey /k"YNynQq[esc]" Do you whish to save ([Y]es/[N]o/[Q]uit/[Esc]Save all and exit) : %%answer
if %answer eq q goto out2
if %answer eq y (
screen 19 6
gosub clrstatbox
echo saving %@line[%prcssdir,%counter]\descript.ion
del /y %@line[%prcssdir,%counter]\descript.bak >& nul
return)
if %answer eq n (
copy %@line[%prcssdir,%counter]\descript.bak %@line[%prcssdir,%counter]\descript.ion >& nul
del /y %@line[%prcssdir,%counter]\descript.bak >& nul
return)
set autosave=yes
gosub clrstatbox
screen 19 6
echo Saving all modified descript.ion files !
return
:clrstatbox
drawbox 18 5 22 77 0 blu on blu fill blu
return
:out
scrput 18 5 bri whi on blu working ...
drawbox 17 4 23 79 %boxstyle bri cya on blu
gosub savemods
:out2
gosub clrstatbox
scrput 19 5 whi on blu [UNREGISTERED EVALUATION COPY]
scrput 20 5 whi on blu Thanks for evaluating FMMO's software !
scrput 21 5 whi on blu Have a nice 4DOS !
%cursor_on
popd
screen 23 0
del /yz descript.bak >& nul
endlocal
cancel
:copydesc
copy descript.ion descript.bak >& nul
copy descript.ion descript.bak >& nul
return
:notv40
echo DESCBTM is constantly updated to use the latest 4DOS functions.
echo As of now, the most recent version of 4DOS is 4.0/rev B1 release.
echo Please read the file magicn.fmo for more information !
quit
:not4dos
@echo
@echo 4DOS (tm) is not loaded on your system.
@echo.
@echo Shame on you :-)
@echo.
@echo For DESCBTM to run, 4DOS must be loaded on your system.
@echo.
@echo Feel free to download or request the latest version of 4DOS (tm) JPSoftware
@echo from FMMHOST BBS in Sherbrooke, Qc.
@echo.
@echo Please read magicn.fmo for more information.
@echo.
@echo We are an official 4DOS Distribution Site !